import {request} from "./request";

export function register(newuser) {
    return request({
        method: 'post',
        url: '/register',
        data: {
            nickname: newuser.nickname,
            email: newuser.email,
            password: newuser.password,
        }
    })
}
export function findEmail(email) {
    return request({
        method: 'get',
        url: '/findEmail',
        params: {
            email: email
        }
    })
}
export function getCode(email) {
    return request({
        method: 'get',
        url: '/getCode',
        params: {
            email: email
        }
    })
}
export function signIn(user) {
    return request({
        method: 'post',
        url: '/signIn',
        data: user
    })
}